
namespace JQuery.WebKit.Common.Caching
{
    internal class CacheFactory
    {
        #region internal static ICache CreateCache()
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        internal static ICache CreateCache()
        {
            if (System.Web.HttpContext.Current == null)
            {
                return new MemoryCache();
            }
            else
            {
                return new WebCache(null);
            }
        }
        #endregion
    }
}
